#pragma once
#include <string>
#include <iostream>

using namespace std;

class MultiMedia
{

protected:
	string title, author, publisher;
	int year, price;

public:

	MultiMedia(void);
	MultiMedia(string title, string author, string publisher, int year, int price);

	void ReadFromConsole();
	void WriteToConsole();


	// Get- och Set-metoder
	string GetTitle();
	void SetTitle(string title);

	string GetAuthor();
	void SetAuthor(string author);

	string GetPublisher();
	void SetPublisher(string publisher);

	int GetYear();
	void SetYear(int year);

	int GetPrice();
	void SetPrice(int price);



	friend istream &operator>>(istream &in, MultiMedia &multi);
	friend ostream &operator<<(ostream &out, MultiMedia &multi);
};

